package com.chen.spzx.cloud.order.controller;

import com.chen.spzx.cloud.entity.Order;
import com.chen.spzx.cloud.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cgj
 * @date 3/29/25 10:07 AM
 */
@RestController
@RequestMapping("api/order")
public class OrderController {
    @Autowired
    private OrderService orderService;
    @GetMapping("selectByOrderId/{orderId}")
    public Order selectByOrderId(@PathVariable Long orderId){
        return orderService.selectByOrderId(orderId);
    }
}
